package com.zyg.service;

import com.zyg.pojo.Dept;

import java.io.IOException;
import java.util.List;

public interface DeptService {
    List<Dept> findAll(Dept condition,int offset, int pageSize) throws IOException;
    List<Dept>  getDeptList();
    int deleteDept(int id);

    int addDept(Dept dept);

    Dept findDeptById(int id);

    int updateDept(Dept dept);

    int count(Dept condtion);
}
